﻿@model IViewModel
@{
    var content = new PlaceHolder();
    foreach (var lang in Project.GetLanguages())
    {
        var rvd = ViewContext.RouteData.Values;
        rvd["id"] = lang.ID;
        var href = Url.Action(Str.Business.Home.Actions.LanguageSelected, Str.Controllers.Home, rvd);
        
        content.AddControls
        (
            new Anchor("lang")
                .SetHref(href)
                .SetTitle(lang.EnglishName + " (" + lang.LanguageName + ")")
                .AddControls
                (
                    new Literal(lang.NativeName)
                )
        );
    }
}
@AddControls(content)